package io.renren.modules.sys.controller;

import io.renren.common.utils.R;
import io.renren.modules.sys.entity.BusinessEntity;
import io.renren.modules.sys.service.BusinessService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * 
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-03-25 18:07:20
 */
@RestController
@RequestMapping("sys/business")
public class BusinessController {
    @Autowired
    private BusinessService businessService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    @RequiresPermissions("sys:business:list")
    public R list(){
        BusinessEntity businessEntity = businessService.queryList();

        return R.ok().put("business", businessEntity);
    }


}
